package service;

import java.sql.SQLException;

import bean.Ajax;
import entity.Admin;

public interface AdminService {
	Ajax<Admin> getList(int offset, int limit, String condition, String order) throws SQLException;
	int addAdmin(Admin admin) throws SQLException;
	int deleteAdminById(String id) throws SQLException;
	Admin getAdminById(int id) throws SQLException;
	int editAdmin(Admin admin) throws SQLException;
	Admin getAdminByUsername(String username) throws SQLException;
}
